package com.example.restaurant.controller.form;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("商户注册模型")
public class MerchantForm {
    //商户唯一id(账号)
    @NotBlank
    @ApiModelProperty("相关联的商户唯一id")
    private String userId;

    //商户负责人
    @NotBlank
    @ApiModelProperty("商户负责人名字")
    private String merchantName;

    //商户负责人电话
    @NotNull
    @ApiModelProperty("商户负责人电话")
    private Long telephone;

    //关联角色id
    @NotNull
    @ApiModelProperty("关联角色id")
    @Min(1)
    private Integer roleId;

    //密码
    @NotBlank
    @ApiModelProperty("密码")
    private String password;
}
